package com.zenika.zenbinding.client.feedback;

import com.zenika.zenbinding.client.exception.DataMessage;
import com.zenika.zenbinding.client.handler.Handler;

/**
 * The StyleFeedbackManager manages only one Model. It changes the style of the
 * widget bound to the model managed in function of the model error state.
 * @author Zenika
 */
public class StyleFeedbackManager implements FeedbackManager {

	public void enterErrorState(DataMessage message, Handler handler) {
		handler.setErrorStyle();
	}

	public void leaveErrorState(Handler handler) {
		handler.setRegularStyle();
	}

}
